package com.android.lovingpet.mine.setting.accountsecurity;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.android.lovingpet.R;
import com.android.lovingpet.base.BaseFragment;
import com.android.lovingpet.base.BasePresenter;
import com.android.lovingpet.base.BaseView;
import com.android.lovingpet.util.Utility;

public class AccountSecurityFragment extends BaseFragment implements View.OnClickListener {

    @Override
    protected int setContentView() {
        return R.layout.fragment_setting_account;
    }

    @Override
    protected void onCreateView(View view) {
        view.findViewById(R.id.ll_idCard).setOnClickListener(this);
        view.findViewById(R.id.ll_email).setOnClickListener(this);
        ((TextView) view.findViewById(R.id.tv_title)).setText("账户与安全");
    }

    @Override
    public BasePresenter createPresenter() {
        return null;
    }

    @Override
    public BaseView createView() {
        return null;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ll_idCard:
                Utility.addFragment(getFragmentManager(), R.id.fragment_mine_setting, new IdCardFragment());
                break;

            case R.id.ll_email:
                Utility.addFragment(getFragmentManager(), R.id.fragment_mine_setting, new EmailFragment());
                break;

            default:
                break;
        }
    }
}
